package lab02.test06;
import java.util.Scanner;
/**
 * Created by Administrator on 2017/10/15.
 */
public class Test06 {
    public static void main(String[] args) {
        Triangle c1=new Triangle();
        Ladder c2=new Ladder();
        Circle c3=new Circle();
        Scanner sc=new Scanner(System.in);
        System.out.println("请分别输入三角形三边长");
        c1.one=sc.nextDouble();
        c1.two=sc.nextDouble();
        c1.three=sc.nextDouble();
        c1.judgement();
        System.out.println("此三角形周长和面积分别为："+c1.getPerimeter()+" "+c1.getArea());
        System.out.println("请分别输入上底 下底 高");
        c2.on=sc.nextDouble();
        c2.bottom=sc.nextDouble();
        c2.high=sc.nextDouble();
        System.out.println("此梯形面积为: "+c2.getArea());
        System.out.println("请输入圆形的半径");
        c3.R=sc.nextDouble();
        System.out.println("圆形面积和周长分别为"+c3.getArea()+"  "+c3.getPerimeter());
    }
}
